﻿@model MvcApplication2.Models.BuildItem

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>BuildItem</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.AppMapPackageId)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.AppMapPackageId)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.PackageName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.PackageName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.HumanReadableAppName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.HumanReadableAppName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.CommandLine)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CommandLine)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.WorkingDir)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.WorkingDir)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.CreationDate)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.CreationDate)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.Releases)
    </div>
    <div class="display-field">
        <table>
            <tr>
                <th>Release Title</th>
                <th>Release Version</th>
                <th>Release Stage</th>
            </tr>
            @foreach (var item in Model.Releases)
            {
               
                <tr>
                    <td>
                        @Html.DisplayFor(modelItem => item.Build.Title)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Build.Version)
                    </td>
                    <td>
                        @Html.DisplayFor(modelItem => item.Build.Stage)
                    </td>
                </tr>
            }
        </table>

    </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.BuildItemId }) |
    @Html.ActionLink("Back to List", "Index")
</p>
